<include file="Companycontrol:header" />
<link rel="stylesheet" href="__ROOT__/weixin_statics/css/date.css">
<script type="text/javascript" src="__ROOT__/weixin_statics/js/soundmanager2-jsmin.js"></script>
<!--预约面试-->
<div class="ms-box" style="display:none;" id="layer1" style="width:auto; height:auto; overflow:auto; border:1px solid #000000;">
	<i class="close-prev"><img src="__ROOT__/weixin_statics/images/close.png" alt=""></i>
	<form name="from" id="order_audition" method="post" action="{:U('Companycontrol/order_audition',array('hiring_id'=>$Think['get']['hiring_id']))}">
    <div class="ms-b1">
    	<h2>面试时间：</h2>
        <h3 class="date"><input type="text" name="mtime" class="text date_picker" id="date"></h3>
        <h2>时间补充：</h2>
        <h3 class="date def"><input type="text"  name="time" class="text" value=""  placeholder="下午两点到六点"></h3>
        <h2>面试地点：</h2>
        <empty name="com_info">
        <h3 class="date def"><input type="text"  name="address" class="text" value="{$Think.session.company.address}"></h3>
        <h2>联系人：</h2>
        <h3 class="date def"><input type="text"  name="manage" class="text" value="{$Think.session.manage.wx_name}"></h3>
        <h2>联系电话：</h2>
        <h3 class="date def"><input type="text" name="phone" class="text" value="{$Think.session.manage.wx_phone}"><input type="hidden"  class="yuyue_id" name="send_id" value="0"></h3>
        <else/>
        <h3 class="date def"><input type="text" name="address" class="text" value="{$com_info.address}"></h3>
        <h2>联系人：</h2>
        <h3 class="date def"><input type="text" name="manage" class="text" value="{$com_info.contact}"></h3>
        <h2>联系电话：</h2>
        <h3 class="date def"><empty name="com_info.phone"><input type="text" name="phone" class="text" value="{$com_info.call}"><else/>
        <input type="text"  name="phone" class="text" value="{$com_info.phone}"></empty><input type="hidden"  class="yuyue_id" name="send_id" value="0"></h3>
        </empty>
    </div>
         <h3><a href="javascript:" class="page-btn ok" onclick="$('#order_audition').submit()" >预约</a></h3>
          <h3><a href="javascript:" class="page-btn pink concell">取消</a></h3>
	</form>
</div>
<!--分享-->
<div class="ms-box share" style="display:none;" id="layer2">
	<i class="close-prev"><img src="__ROOT__/weixin_statics/images/close.png" alt=""></i>
	<form name="from" id="reply_other" method="post" action="{:U('Companycontrol/reply_other',array('hiring_id'=>$Think['get']['hiring_id']))}">
    <div class="share-tip"><img src="__ROOT__/weixin_statics/images/share.png" alt=""></div>
    <p class="txt">点击右上角的选择“推荐给好友”</p>
    <p class="stxt">或<br />通过短信发给TA</p>
    <div class="ms-b1">
        <h2>手机号码：</h2>
        <h3 class="date def"><input type="text"  name="phone" class="text"></h3>
    </div>
	<input type="hidden" readonly class="reply_id" name="send_id" value="0">
          <h3><a href="javascript:" class="page-btn pink concell" onclick="$('#reply_other').submit()">发送</a></h3>
	</form>
</div>
<!--设为鸽子-->
<div class="ms-box" style="display:none;" id="layer3">
	<i class="close-prev"><img src="__ROOT__/weixin_statics/images/close.png" alt=""></i>
	<form name="from" id="fly_resume" method="post" action="{:U('Companycontrol/fly_resume',array('hiring_id'=>$Think['get']['hiring_id']))}">
    <div class="ms-b1">
    	<h2 class="btitle">为了减少鸽子的数量，我们会按求职者的守信指数进行排序？</h2>
        <h2 class="btitle">您确定将TA设置为鸽子吗？</h2>
    </div>
	<input type="hidden" readonly class="fly_id" name="send_id" value="0">
         <h3><a href="javascript:" class="page-btn ok" onclick="$('#fly_resume').submit()">设为鸽子</a></h3>
          <h3><a href="javascript:" class="page-btn pink concell">取消</a></h3>
	</form>
</div>
<!--岗位不适合-->
<div class="ms-box" style="display:none;" id="layer4">
	<i class="close-prev"><img src="__ROOT__/weixin_statics/images/close.png" alt=""></i>
	<form name="from" id="esc_resume" method="post" action="{:U('Companycontrol/esc_resume',array('hiring_id'=>$Think['get']['hiring_id']))}">
    <div class="ms-b1">
    	<h2 class="btitle">您确定这个求职者不适合您的岗位吗？</h2>
    </div>
	<input type="hidden" readonly class="esc_id" name="send_id" value="0">
         <h3><a href="javascript:" class="page-btn ok" onclick="$('#esc_resume').submit()">确定</a></h3>
          <h3><a href="javascript:" class="page-btn pink concell">取消</a></h3>
	</form>
</div>
<!--详细介绍-->
<volist name="resume_list" id="rli">
<div class="user-box-list" style="display:none;" id="resume_info_{$rli.resume_id}"> <i class="close-prev"><img src="__ROOT__/weixin_statics/images/close.png" alt=""></i>
    <h2>工作经验</h2>
	<volist name="rli.exper" id="rle">
    <p>{$rle.jobbegin|date='Y年m月',###}至{$rle.jobend|date='Y年m月',###}<br />
        在{$rle.jobname}</br />
		任职{$rle.jobzhiwei}</p>
	</volist>
    <h2>自我介绍</h2>
    <p>{$rli.myinfo}</p>
</div>
</volist>
<!--弹出电波-->
<div class="user-box-db" style="display:none;" id="layer6"> <i class="close-prev"><img src="__ROOT__/weixin_statics/images/close.png" alt=""></i> </div>
<div class="warp">
	<volist name="resume_list" id="rl">
	<div class="yydown">
        <empty name="rl.is_audition">
            <div class="images-content"><h2>
                                <switch name="rl.is_check" >
                                 <case value="0">未查看</case>
                                 <case value="1">已查看</case>
                                 <default />已预约
                                 </switch>
                            </h2></div> 
            <else/>
            <div class="images-content"><h2>
                                <switch name="rl.is_audition" >
                                 <case value="0">通知未到</case>
                                 <case value="1">未通过</case>
                                 <case value="2">复试</case>
                                 <case value="3">通过</case>
                                 <case value="3">入职</case>
                                 <default />初试
                                 </switch>
                            </h2></div> 
                            <neq name="rl.is_go" value="0">
                                <div class="images-content1"><h2>
                                    <switch name="rl.is_go" >
                                     <case value="1">答应面试</case>
                                     <case value="2">放弃面试</case
                                     ></switch>
                                </h2></div>
                            </neq>
        </empty>
		<div class="shaxin"><img src="__ROOT__/weixin_statics/images/rili-def.png" alt="">{$rl.send_time|date='Y-m-d H:i:s',###}</div>
		<div class="user-big"><img src="{$rl.pic.url}" width="" alt=""></div>
		<div class="user-title"><span><a href="javascript:">{$rl.truename}</a><em>（{$rl.xingbie}，{$rl.age}岁）</em></span><a href="javascript:" data-index="{$rl.resume_id}" class="detail"><img class="ico" src="__ROOT__/weixin_statics/images/list.png" alt=""></a><a href="javascript:" class="msg" data-index="{$rl.voice}"><img class="ico" src="__ROOT__/weixin_statics/images/vol.png" alt=""></a></div>
		<div class="user-txt">{$rl.shengao}CM/{$rl.tizhong}Kg，{$rl.xueli}，{$rl.hunyin}</div>
        <a href="#" class="from" style="margin-left:20px;">{$rl.jobname}</a>
		<div class="user-mobile"><img src="__ROOT__/weixin_statics/images/mobile.png" alt="">{$rl.phone}</div>
        <neq name="Think.get.reply_other" value="1">
    		<div class="jlpeev-bottm yymian-bottm"> 
    			<i class="ico"><a href="javascript:" data-index="{$rl.id}" class="order_audition" id="yy1"><img src="__ROOT__/weixin_statics/images/yymiani1.png" alt=""></a></i>
    			<i class="ico"><a href="javascript:" data-index="{$rl.id}" class="reply_other" id="yy2"><img src="__ROOT__/weixin_statics/images/yymiani2.png" width="64" alt=""></a></i>
    			<i class="ico"><a href="javascript:" data-index="{$rl.id}" rate="{$rl.is_check}" class="fly_resume" id="yy3"><img src="__ROOT__/weixin_statics/images/yymiani3.png" alt=""></a></i>
    			<i class="ico"><a href="javascript:" data-index="{$rl.id}" class="esc_resume" id="yy4"><img src="__ROOT__/weixin_statics/images/yymiani4.png" alt=""></a></i>
    		</div>
        </neq>
	</div>
	</volist>
</div>
    <script src="__ROOT__/weixin_statics/js/jquery.date_input.pack.js"></script>
    <script language="javascript">
        $(document).ready(function(){

            $( "#date" ).date_input();
            //yy1
            $(".order_audition").bind("click",function(){
				send_id = $(this).attr('data-index');
				$(".yuyue_id").val(send_id);
                $("#layer1").show();
            });
            //yy2
            $(".reply_other").bind("click",function(){
				send_id = $(this).attr('data-index');
                $(".reply_id").val(send_id);
                $("#layer2").show();
            });
            //yy3
            $(".fly_resume").bind("click",function(){
                var check = $(this).attr('rate');
                if(check != 2){
                    alert('您还没有预约过这个人！所以不能备注为鸽子~');
                    return false;
                }else{
                    send_id = $(this).attr('data-index');
                    $(".fly_id").val(send_id);
                    $("#layer3").show();
                }
				
            });
			//yy4
            $(".esc_resume").bind("click",function(){
				send_id = $(this).attr('data-index');
				$(".esc_id").val(send_id);
                $("#layer4").show();
            });
            //编辑
            $(".detail").bind("click",function(){
				resume_id = $(this).attr('data-index');
                $("#resume_info_"+resume_id).show();
            });
            $(".close-prev").bind("click",function(){
                $(this).parent().hide();
            });
            $(".concell").bind("click",function(){
                $(this).parent().parent().parent().hide();
            });
            //消息
			$.extend({
				play_mp3:function(mp3){
					mySound = soundManager.createSound({
						url: '__URL__/getvoiceurl/voice/'+mp3
					});
					mySound.play();
				},
				stop_mp3:function(){
					mySound.stop();
				}
			});
			var mySound;
            $(".msg").bind("click",function(){
                $("#layer6").show();
				voice = $(this).attr('data-index');
				$.play_mp3(voice);
            });
            $("#layer6 .close-prev").bind("click",function(){
				$.stop_mp3();
            });
        });
    </script>


<include file="Companycontrol:footer" />